<?php
/* @var $this SiteController */
/* @var $model LoginForm */
/* @var $form CActiveForm  */


$this->pageTitle=Yii::app()->name . ' - Login';
$this->breadcrumbs=array(
	Yii::t('default','Login'),
);

?>

<style type="text/css">

td
{
		text-align: <?php if(Yii::app()->language == 'ar')  echo "right"; else echo "left"; ?>;
}
	
</style>    


<h1><?php //echo Yii::t('default','Login'); ?></h1>


<div class="form login">
<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm', array(
	'id'=>'login-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	
	),
)); ?>

<!-- 	<p class="note">Fields with <span class="required">*</span> are required.</p> -->

	
	<fieldset style="border: 1px solid #16A1E7;margin:auto;border-radius: 15px;width:30%;" >
	
	<legend> &nbsp;&nbsp;<?php echo Yii::t('default','Login'); ?> &nbsp;&nbsp;</legend>
	
	<div class="row" style="text-align: center;">
	<?php echo  $form->textFieldControlGroup($model,'username',array('span'=>3,'maxlength'=>128)); ?>
	</div>
	
	<div class="row" style="text-align: center;">
	<?php echo $form->passwordFieldControlGroup($model,'password',array('span'=>3,'maxlength'=>128)); ?>
	</div>
	
	<div class="row rememberMe" style="text-align: center;">
	
	<?php echo $form->checkBox($model,'rememberMe',array() ); ?>
	<?php echo $form->label($model,'rememberMe'); ?>
	<?php echo $form->error($model,'rememberMe'); ?>
	
	<a href="<?php echo  Yii::app()->getBaseUrl(true) ;?>/user/resetPassword" > <font size="1"><?php echo Yii::t('default','Forgot Password?')?></font> </a>
	</div>
	
	<?php // echo $form->checkBoxControlGroup( $model,'rememberMe',array('style'=>"text-align: center;") ); ?>
	

	<div class="row buttons" style="text-align: center;">
     <?php echo TbHtml::submitButton(Yii::t('default','Login'),array(
		    'color'=>TbHtml::BUTTON_COLOR_PRIMARY,
		    'size'=>TbHtml::BUTTON_SIZE_DEFAULT,
		)); ?>
	</div>

	</fieldset>
	
	<fieldset style="border: 1px solid #16A1E7;margin:auto;border-radius: 15px;width:30%;" >
		<table style="width: 100%"><tr><td style="width: 50%"><?php echo Yii::t('default','social.login') ?></td><td><?php $this->widget('application.modules.hybridauth.widgets.renderProviders'); ?></td></tr></table>
		
	</fieldset>
	
	
	 

<?php $this->endWidget(); ?>
</div><!-- form -->
